
import {Form, Input, Button, } from 'antd';
import {WeaDialog, WeaSearchGroup, WeaInput,WeaAuth ,WeaTab,WeaTools,WeaNewScroll,WeaRightMenu,WeaLocaleProvider} from 'ecCom';
import {inject, observer} from "mobx-react";
import {toJS} from 'mobx';
import _mapValues from 'lodash/mapValues'
import {WeaTableNew} from 'comsMobx';
const WeaTable = WeaTableNew.WeaTable;
const getLabel = WeaLocaleProvider.getLabel;

@observer
class EditPrjTaskDataDialog extends React.Component {
    constructor(props) {
        super(props);
        this.state={
        }
    }

    render() {
        const {contentStore} = this.props;
            return (
                <div>
                    <WeaDialog ecId={`${this && this.props && this.props.ecId || ''}_WeaDialog@zlnmaa`}
                        title={getLabel(15284,"编辑任务")}
                        visible={contentStore.showEditTask}
                        buttons={this.getButtons()}
                        icon="icon-coms-project"
                        iconBgcolor="#217346"
                        onCancel={()=>{contentStore.showEditTaskModal(false)}}
                        style={{width:'1000px', height:'600px'}}
                    >
                        <WeaNewScroll ecId={`${this && this.props && this.props.ecId || ''}_WeaNewScroll@was71s`} height={"100%"}>
                        <iframe src={"/proj/data/EditProjectTask.jsp?ProjID="+contentStore.prjid+"&e9from=e9&isdialog=1&key="+new Date().getTime()} id="editPrjTaskData" name="editPrjTaskData" className="flowFrame" frameborder="0" width="100%" height="100%" />
                        </WeaNewScroll>
                    </WeaDialog>
                </div>)
        }
    
    getButtons(){
        const {contentStore} = this.props;
        let btnArr = []; 
        btnArr.push(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@3qvrlq@close`}  type="primary" onClick={()=>contentStore.showEditTaskModal(false)}>{getLabel(309,"关闭")}</Button>)  
        return btnArr;
    }
  
  
}

export default EditPrjTaskDataDialog;